placessidebar: do not crash if uris is NULL
authorDominique Leuenberger <dimstar@opensuse.org>
Thu, 29 Oct 2015 12:56:18 +0000 (13:56 +0100)
committerDominique Leuenberger <dimstar@opensuse.org>
Thu, 29 Oct 2015 16:32:13 +0000 (17:32 +0100)
On Drag'n'Drop actions across system boundaries (VM host to guest), the
happen to be null.

https://bugzilla.gnome.org/show_bug.cgi?id=757298

gtk/gtkplacessidebar.c

index 42179c333332a7dca534cd204a4b4dba81078c29..8dc6d301f11fca84b1bdc2acd1fde6c1f6f1d63f 100644 (file)
@@ -1708,7 +1708,7 @@ build_file_list_from_uris (const gchar **uris)
   gint i;
 
   result = NULL;
-  for (i = 0; uris[i]; i++)
+  for (i = 0; uris && uris[i]; i++)
     {
       GFile *file;